<!DOCTYPE html>
<html lang="en">

<head>
    <!-- Use correct character set. -->
    <meta charset="utf-8">
    <!-- Tell IE to use the latest, best version. -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- Make the application on mobile take up the full browser screen and disable user scaling. -->
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
    <title>Hello World!</title>
   <!-- <script src=../node_modules/cesium/Build/CesiumUnminified/Cesium.js></script>-->
    <script src=../Third/Cesium/Cesium.js></script>
    <script src="../Build/CesiumGeometry/CesiumGeometry.js"></script>
    <style>
        @import url(../Third/Cesium/Widgets/widgets.css);

        html,
        body,
        #cesiumContainer {
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            overflow: hidden;
        }
    </style>
</head>

<body>
<div id="cesiumContainer"></div>
<script>
    var viewer = new Cesium.Viewer('cesiumContainer', {
        imageryProvider: Cesium.createTileMapServiceImageryProvider({
            url: '../Map'
        }),
        baseLayerPicker: false,
    });

    var scene = viewer.scene;
    var primitives = scene.primitives;

    var colors = [
        new Cesium.Color(77 / 255, 201 / 255, 255 / 255,0.9 ),
        new Cesium.Color(255 / 255, 201 / 255, 38 / 255, 0.9),
        new Cesium.Color(221 / 255, 221 / 255, 221 / 255, 0.9)
    ];

    function add() {
        for (var i = 0; i < 100; i++) {
            var position = Cesium.Cartesian3.fromDegrees(Math.random() * 180, Math.random() * 50, 0);

            viewer.entities.add({
                position: position,
                ellipse: {
                    semiMinorAxis: 300000.0,
                    semiMajorAxis: 300000.0,
                    height: 0.0,
                    material: new Cesium.ElliposidFadeMaterialProperty({
                        color: colors[i % 3]
                    }),
                    //material: colors[i % 3],
                    //material: new Cesium.ColorMaterialProperty(colors[i % 3])
                }
            });

            /*viewer.entities.add({
             position: position,
             cylinder: {
             length:1,
             topRadius:300000,
             bottomRadius:300000,
             material: new Cesium.ElliposidFadeMaterialProperty({
             color: Cesium.Color.YELLOW
             })
             }
             });*/
        }
    }
    add();


</script>
</body>

</html>